[broadway] Only allow one input session
authorAlexander Larsson <alexl@redhat.com>
Thu, 25 Nov 2010 12:25:56 +0000 (13:25 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 25 Nov 2010 21:09:33 +0000 (22:09 +0100)
gdk/broadway/gdkdisplay-broadway.c

index 9c480da93611a12db831716ff28ecf49e6e8fae3..4e38048e945f7fa8cc0371df8c0aad0c187d22e2 100644 (file)
@@ -236,6 +236,12 @@ start_input (HttpRequest *request)
 
   display_broadway = GDK_DISPLAY_BROADWAY (request->display);
 
+  if (display_broadway->input != NULL)
+    {
+      send_error (request, 409, "Input already handled");
+      return;
+    }
+
   lines = g_strsplit (request->request->str, "\n", 0);
 
   num_key1 = 0;